package com.muyu.danmo.controller;

import com.muyu.common.core.domain.Result;
import com.muyu.common.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType;
import com.muyu.danmo.service.IDanmoCommunityUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 社区用户Controller
 *
 * @author : kunzong
 * @date : 2024-11-19
 */
@RestController
@RequestMapping("/danmoCommunityUser")
public class DanmoCommunityUserController {

    @Autowired
    private IDanmoCommunityUserService danmoCommunityUserService;

    /**
//     * 查询具体用户
     *
     * @param authorId 发帖用户ID
     * @return Result<Void>
     */
    @Log(title = "查询具体用户", businessType = BusinessType.SETTLEMENT)
    @GetMapping("/{authorId}")
    public Result getInfo(@PathVariable("authorId") Long authorId) {
        return Result.success(danmoCommunityUserService.selectDanmoCommunityUserById(authorId));
    }
}